package com.multiple.datasource.service.impl.primary;

import com.multiple.datasource.dao.primary.UserMapper;
import com.multiple.datasource.entity.primary.User;
import com.multiple.datasource.service.primary.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User getUserById(Integer id){
        return userMapper.selectByPrimaryKey(id);
    }
}
